import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { ConfigProvider } from 'antd';
import { PersistGate } from 'redux-persist/lib/integration/react'

import { store,persistor} from '../src/store'

ReactDOM.render(
    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
            <ConfigProvider>
                <App/>
            </ConfigProvider>
        </PersistGate>
    </Provider>,
    document.getElementById('root')
);


reportWebVitals();
